package com.xb.loan.cashier.service.bean;

import java.io.Serializable;
import java.lang.reflect.Field;

/**
 * 实名认证接口
 */
@SuppressWarnings("serial")
public class RealAuthBO implements Serializable {
    
    private int payChannelType; //第三方支付渠道    1：支付宝；2：微信；3：银联;4:交行
    private int tradeType; //渠道业务类型    1：web；2：wap；3：app
    private int payType;//0:充值；1：提现
    private String platId; //平台id
    private String cardNo;	//银行卡号
    private String custName;//客户名称
    private String certType;//证件类型(15居民身份证;16临时身份证;17军人身份证件;18武警身份证件;19港澳台居民通行证;20护照;21其他;22临时户口;23户口簿;24边境证)
    private String certNo;//证件号
    private String sign;  //加密串 sign签名
    
	public int getPayChannelType() {
		return payChannelType;
	}

	public void setPayChannelType(int payChannelType) {
		this.payChannelType = payChannelType;
	}

	public int getTradeType() {
		return tradeType;
	}

	public void setTradeType(int tradeType) {
		this.tradeType = tradeType;
	}

	public String getPlatId() {
		return platId;
	}

	public void setPlatId(String platId) {
		this.platId = platId;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getCustName() {
		return custName;
	}

	public void setCustName(String custName) {
		this.custName = custName;
	}

	public String getCertType() {
		return certType;
	}

	public void setCertType(String certType) {
		this.certType = certType;
	}

	public String getCertNo() {
		return certNo;
	}

	public void setCertNo(String certNo) {
		this.certNo = certNo;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public int getPayType() {
		return payType;
	}

	public void setPayType(int payType) {
		this.payType = payType;
	}

	@Override
	public String toString(){
		StringBuffer sb = new StringBuffer("");
		Class<RealAuthBO> c = RealAuthBO.class;
		Field[] fields = c.getDeclaredFields();
		for (Field field : fields) {
			field.setAccessible(true);
			try {
				Object o = field.get(this);
				if (o!=null) {
					sb.append(field.getName());
					sb.append("=");
					sb.append(o.toString());
					sb.append(",");
				}
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return sb.equals("")?"":sb.toString().replaceAll(",$", "");
	}
}
